package com.example.tests;

import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;

public class NewTest extends SeleneseTestCase {
	public void testNew() throws Exception {
		selenium.open("/diamond-parking-war/login.xhtml;jsessionid=238c9ce9596250632344a4f496b2?conversationId=343");
		selenium.type("login:username", "test");
		selenium.click("login:login");
		selenium.waitForPageToLoad("30000");
		selenium.click("j_id14:j_id16");
		selenium.click("j_id14:claimReturned:j_id33DayCell7");
		selenium.type("j_id14:claimLocation:j_id43", "East Lot");
		selenium.type("j_id14:claimParkedBy:j_id54", "John Doe");
		selenium.type("j_id14:carLP:j_id65", "168 MKV");
		selenium.type("j_id14:carMake:j_id76", "Subaru");
		selenium.type("j_id14:carColor:j_id87", "Black");
		selenium.type("j_id14:claimDamageReport:j_id121", "3 dents on customer door. Front bumper is falling off.");
		selenium.click("j_id14:j_id126");
		selenium.waitForPageToLoad("30000");
		selenium.click("j_id14:j_id17");
		selenium.waitForPageToLoad("30000");
		selenium.click("link=test");
		selenium.click("j_id78:j_id192");
		selenium.waitForPageToLoad("30000");
		selenium.click("j_id78:j_id192");
		selenium.waitForPageToLoad("30000");
		selenium.waitForPageToLoad("30000");
		selenium.type("j_id14:customerName:j_id22", "Will Trang");
		selenium.click("j_id8");
		selenium.waitForPageToLoad("30000");
	}
}
